anti-analysis/anti-debugging/debugger-detection

check SystemKernelDebuggerInformation

rule:
  meta:
    name: check SystemKernelDebuggerInformation
    namespace: anti-analysis/anti-debugging/debugger-detection
    authors:
      - michael.hunhoff@mandiant.com
    scopes:
      static: basic block
      dynamic: call
    mbc:
      - Anti-Behavioral Analysis::Debugger Detection [B0001]
    references:
      - https://github.com/LordNoteworthy/al-khaser/blob/master/al-khaser/AntiDebug/NtQuerySystemInformation_SystemKernelDebuggerInformation.cpp
  features:
    - and:
      - or:
        - api: NtQuerySystemInformation
        - api: NtQuerySystemInformationEx
        - api: ZwQuerySystemInformation
        - api: ZwQuerySystemInformationEx
      - number: 0x23 = SystemKernelDebuggerInformation

last edited: 2023-11-24 10:35:00